<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>

     /*   练习二：
	求100以内所有的奇数之和*/
      var b = 0;
      for (a = 1; a < 100;a++){
          if (a % 2 == 0){
              b = b + a;

          }



      }
        console.log(b);







    </script>
</head>
<body>

</body>
</html>